package cglib.interfacedemo.dao.impl;

import cglib.interfacedemo.dao.Act;
import cglib.interfacedemo.dao.Person;

public class Actor extends Person implements Act {
    private String type;

    public Actor(){

    }

    public Actor(String type) {
        this.type = type;
    }

    public Actor(String name, String type) {
        super(name);
        this.type = type;
    }

    @Override
    public void act() {
        System.out.println(this.name + "正在出演" + this.type + "类型的影片...");
    }
}
